package com.liandu.common.utils;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;

public class FastJsonUtil extends JSONObject {

    private static final long serialVersionUID = -5249407781733087022L;

    public static JSONObject parseJSONObject(Object o){
        return JSONObject.parseObject(JSONObject.toJSONString(o, SerializerFeature.WriteNullStringAsEmpty,SerializerFeature.WriteNullListAsEmpty));
    }

}
